package com.taiyi.renaissancemall.Utils;

import android.content.Context;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.bumptech.glide.load.resource.bitmap.RoundedCorners;
import com.youth.banner.loader.ImageLoader;

public class MyImageLoader extends ImageLoader {
    private RoundedCorners roundedCorners = new RoundedCorners(100);

    @Override
    public void displayImage(Context context, Object path, ImageView imageView) {

        Glide.with(context).load((String) path).apply(GlideOptionsManager.getInstance().transform(roundedCorners)).into(imageView);
    }
}
